<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后代选择器</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .bord{
            border: 1px dashed #ee2602;
            width: 90%;
            margin: 20px auto;
        }
        div h2 {
            background-color: antiquewhite;
            font-family: "微软雅黑";
        }
        div b {
            background-color: aquamarine;
            font-family: "微软雅黑";
        }
        div a{
            background-color: burlywood;
            font-family: "微软雅黑";
        }
        .title{
            font-size: 20px;
            font-weight: bold;
            margin: 20px;
        }
        .introduce{
            font-size: 16px;
            margin: 0 0 20px 50px;
        }
        .red{
            color: red;
        }
    </style>
</head>
<body>
<div class="bord">
    <div class="title">后代选择器</div>
    <div class="introduce">
        后代选择器（descendant selector）又称为包含选择器。<br/>
        　　　　　　后代选择器可以选择作为某元素后代的元素。
    </div>
</div>
<div class="bord">
    <div class="title">演示效果</div>
    <div class="introduce">
        <div>
            <h2>当万籁寂静　夜色微明</h2>
            <b>当暴雨过去　天色放晴</b>
            <a>我期待和你　画下这风景</a>
        </div>
    </div>
</div>
<div class="bord">
    <div class="title">代码</div>
    <div class="introduce">
        <pre>
             &lt;style&gt;
                         div h2 {
                                    background-color: antiquewhite;
                                    font-family: "微软雅黑";
                                     }
                        div b {
                                    background-color: aquamarine;
                                     font-family: "微软雅黑";
                                    }
                        div a{
                                    background-color: burlywood;
                                    font-family: "微软雅黑";
                        }
            &lt;/style&gt;
        </pre>
    </div>
</div>
</body>
</html>